/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package passwordchecker;

import Interfaces.VerifyStrength;
import Interfaces.CheckerRule;
import java.util.List;

/**
 *
 * @author Tainá
 */
public abstract class GenericPasswordChecker {
    public List<CheckerRule> ruleList;
    public VerifyStrength verifier;
    
    public String checkPassword (){
        int total = 0;
        for (CheckerRule r: ruleList)
             total+=r.rule();
        
        String strength = verifier.checkStrength(total);
        return strength;
    }
}
